home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc19
/
gemfsc19.lzh
/
GEMFBIND
/
VSTPOINT.S
< prev
next >
Wrap
Text File
|
1993-03-26
|
2KB
|
57 lines
;*========================================================================
;* VDIFAST Public Domain VDI bindings.
;*========================================================================
;*------------------------------------------------------------------------
;* Set character height, points mode.
;*------------------------------------------------------------------------
globl _vst_point
_vst_point:
; .cargs #8,handle.w,height.w,charw.l,charh.l,cellw.l,cellh.l
handle = 8
height = 10
charw = 12
charh = 16
cellw = 20
cellh = 24
link a6,#-10 ;* Allocate ptsout[4], intout[1].
; VContrl #107,,,#1
move.w handle(a6),-(sp) ; contrl[6]
clr.l -(sp) ; contrl[5,4]
move.w #1,-(sp) ; contrl[3]
subq.l #2,sp ; contrl[2]
clr.w -(sp) ; contrl[1]
move.w #107,-(sp) ; contrl[0]
pea -8(a6) ;* -> ptsout
pea -10(a6) ;* -> intout
subq.l #4,sp ;* -> ptsin
pea height(a6) ;* -> intin
pea 16(sp) ;* -> contrl
move.l sp,d1
jsr vditrap
move.w -10(a6),d0 ;* Return pt size from intout[0]
lea -8(a6),a1 ;* a1 -> ptsout[0] on stack.
move.l charw(a6),a0 ;* Return character width
move.w (a1)+,(a0) ;* from ptsout[0].
move.l charh(a6),a0 ;* Return character height
move.w (a1)+,(a0) ;* from ptsout[1].
move.l cellw(a6),a0 ;* Return cell width
move.w (a1)+,(a0) ;* from ptsout[2].
move.l cellh(a6),a0 ;* Return cell height
move.w (a1),(a0) ;* from ptsout[3].
unlk a6
rts
end